<?php
if(!$_SESSION['userid'])
{
	header("Location: http://$host$uri/index.php?notice=Please Login");
}
else{
	if($_SESSION['type']!="admin"){
		
		exit("Unauthorized Login");
	}
}
?>